import request from '@/utils/request.js'
// 导入store实例
// import store from '@/store/index.js'

// 获取用户信息
// export default {
//  const getUserInfoAPI = ()=>{
//    return request.get('/my/userinfo')
//  }
// }

// 获取用户信息的接口
const getUserInfoAPI = () => {
  return request({
    method: 'get',
    url: '/my/userinfo'
    // 因为弄了请求拦截器，所以就不应带headers了
    // headers: {
    //   Authorization: store.state.user.token
    // }
  })
}
// 获取左侧菜单列表的接口
const getMenusAPI = () => {
  return request({
    method: 'get',
    url: '/my/menus'
    // headers: {
    //   Authorization: store.state.user.token
    // }
  })
}
export {
  getUserInfoAPI,
  getMenusAPI
}
